﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace Medianamik.Core
{
    public struct NodeTypeInterfaceDataShell
    {
        public NodeTypeInterfaceDataShell(NodeTypeInterface pInterface)
        {
            _nodeTypeInterface = pInterface;
            _properties = new List<NodeTypeInterfaceProperty>();
            _deletedProperties = new List<NodeTypeInterfaceProperty>();
        }

        public NodeTypeInterfaceDataShell(NodeTypeInterface pInterface,
            IEnumerable<NodeTypeInterfaceProperty> properties,
            IEnumerable<NodeTypeInterfaceProperty> deletedProperties)
        {
            _nodeTypeInterface = pInterface;
            _properties = properties;
            _deletedProperties = deletedProperties;
        }

        public NodeTypeInterface NodeTypeInterface { get { return _nodeTypeInterface; } }
        NodeTypeInterface _nodeTypeInterface;

        public IEnumerable<NodeTypeInterfaceProperty> Properties { get { return _properties; } }
        IEnumerable<NodeTypeInterfaceProperty> _properties;

        public IEnumerable<NodeTypeInterfaceProperty> DeletedProperties { get { return _deletedProperties; } }
        IEnumerable<NodeTypeInterfaceProperty> _deletedProperties;
    }
}
